import React, { Component } from 'react'
import RouterView from '../router/routerView'
import routerlist from '../router/routerList'
import {NavLink} from "react-router-dom"
 class App extends Component {
  render() {
    console.log(this.props);
    return (
  
      <div className='app'>

        <div className="router">
            <RouterView RouterList = {routerlist} ></RouterView>
        </div>
         
          <div className='footer'>
            <NavLink to="/home">首页</NavLink>
            <NavLink to="/detail">详情</NavLink>
            <NavLink to="/shopcar">购物车</NavLink>
          </div>
         
      </div>
    )
  }
}

export default App